import React from "react";
import ComponentType from "../../Config/ComponentType";
import InputComp from "../../InputComp";
import {getSimpleComp} from "./getSimpleComp";
// import SalesInputComp from "../../SalesInputComp";
// import GeneralComp from "../../GeneralComp";
export const getCompByType = (type, props = {}) => {
    let comp = getSimpleComp(type, props);

    if (null !== comp) return comp;

    if (type === ComponentType.GENERAL_COMPONENT) {
        // return <GeneralComp {...props} />;
    } else if (type === ComponentType.STOCK_EX_INPUT) {
        // return <SalesInputComp {...props} />;
    } else {
        return <InputComp {...props} />;
    }
};